<?php

$router = new Phalcon\Mvc\Router();

$router->setDefaultModule("frontend_home");
/*
  $router->setDefaultNamespace("Modules\Modules\Frontend\Controllers");

  $router->setUriSource(\Phalcon\Mvc\Router::URI_SOURCE_SERVER_REQUEST_URI);

  $router->removeExtraSlashes(TRUE); */

$router->add('/:controller/:action', array(
    'module' => 'frontend_home',
    'controller' => 1,
    'action' => 2,
));

/*---------------------------------include_routes_frontend-----------------*/
include APP_DIR . '/source/frontend/modules/video/routes/routes.php';

/*---------------------------------include_routes_backtend-----------------*/
include APP_DIR . '/source/backend/modules/dashboard/routes/routes.php';
include APP_DIR . '/source/backend/modules/user/routes/routes.php';
include APP_DIR . '/source/backend/modules/video/routes/routes.php';
include APP_DIR . '/source/backend/modules/upload/routes/routes.php';
include APP_DIR . '/source/backend/modules/advertise/routes/routes.php';
include APP_DIR . '/source/backend/modules/note/routes/routes.php';
include APP_DIR . '/source/backend/modules/cache/routes/routes.php';
return $router;